<!--
 * @FilePath     : /study_code/jquery/api-height.html
 * @Description  : 特殊的高度尺寸
 * @Date         : 2025-04-21 09:47:36
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-21 09:50:10
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <!-- <link rel="stylesheet" href="" /> -->
  </head>
  <body>
    <script src="/jquery/dist/jquery.min.js"></script>
    <script>
      console.log(1, $(window).height()) //浏览器时下窗口可视区域高度

      console.log(2, $(document).height()) //浏览器时下窗口文档的高度

      console.log(3, $(document.body).height()) //浏览器时下窗口文档body的高度

      console.log(4, $(document.body).outerHeight(true)) //浏览器时下窗口文档body的总高度 包括border padding margin
    </script>
  </body>
</html>
